-
Notifications
You must be signed in to change notification settings - Fork 55
fix: dock plugin display blurred on 1.25 screen scale ratio #1085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's Guide by SourceryThis pull request addresses a blurring issue in the dock plugin when the screen scale ratio is 1.25. It disables smooth scaling in Updated class diagram for PluginScaleManagerclassDiagram
class PluginScaleManager {
-QWaylandCompositor* m_compositor
-uint32_t m_scale
+void setPluginScale(const uint32_t &scale)
+void initialize()
}
PluginScaleManager : QObject
note for PluginScaleManager "Corrected scale factor calculation to use 120.0 instead of 120 to avoid rounding errors."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
Files not reviewed (1)
- panels/dock/tray/ShellSurfaceItemProxy.qml: Language not supported
Comments suppressed due to low confidence (2)
panels/dock/pluginmanagerextension.cpp:47
- Using 120.0 ensures floating-point division, which fixes the scale factor calculation. Consider extracting the constant 120.0 into a named variable for better maintainability.
output->setScaleFactor(std::ceil(m_scale / 120.0));
panels/dock/pluginmanagerextension.cpp:67
- Using 120.0 ensures floating-point division, which fixes the scale factor calculation. Consider extracting the constant 120.0 into a named variable for better maintainability.
output->setScaleFactor(std::ceil(m_scale / 120.0));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @zccrs - I've reviewed your changes - here's some feedback:
Overall Comments:
- The QML change has a TODO, create a ticket to track this work.
- The QML change has a detailed comment explaining the reasoning behind the change - this is great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
pms: BUG-306733
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yixinshark, zccrs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review关键摘要:
是否建议立即修改:
|
pms: BUG-306733
Summary by Sourcery
Fix blurry display of dock plugins on screens with 1.25 scale ratio
Bug Fixes:
Enhancements:
Chores: